package icu.d4peng.basic.http.feign.encoding;

import feign.Client;
import feign.okhttp.OkHttpClient;

import org.springframework.boot.autoconfigure.condition.AnyNestedCondition;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Condition;

/**
 * @author d4peng d4peng@qq.com
 * @date 2023-11-26 15:36:16
 */
public class OkHttpFeignClientBeanMissingCondition extends AnyNestedCondition {

	public OkHttpFeignClientBeanMissingCondition() {
		super(ConfigurationPhase.REGISTER_BEAN);
	}

	@ConditionalOnMissingClass("feign.okhttp.OkHttpClient")
	static class FeignOkHttpClientPresent {

	}

	@ConditionalOnProperty(value = "roc.feign.okhttp.enabled", havingValue = "false")
	static class FeignOkHttpClientEnabled {

	}

}
